<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:meta="http://deltaset.org/deltaset-meta"
                xmlns:ds="http://deltaset.org/deltaset-faces"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                xmlns:composite="http://java.sun.com/jsf/composite">

    <composite:interface>
        <composite:attribute name="entityClass" type="java.lang.String" required="true"/>       
    </composite:interface>

    <composite:implementation>       
        <c:if test="#{'internal'==preferencesBean.uiStyle}" >
            <meta:internal entityClass="#{cc.attrs.entityClass}"
                           repositoryProvider="#{springRepositoryProvider}"/>
        </c:if>
        <c:if test="#{'flow'==preferencesBean.uiStyle}" >
            <meta:flow entityClass="#{cc.attrs.entityClass}"
                       repositoryProvider="#{springRepositoryProvider}"/>
        </c:if>		
    </composite:implementation>
</ui:composition>
